home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / debugger / ddd-1.000 / ddd-1 / ddd-1.4b / ddd / DummyBox.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-21  |  1.6 KB  |  56 lines

  1. // $Id: DummyBox.C,v 1.4 1995/11/21 13:49:54 zeller Exp $ 
  2. // Implementation Klasse DummyBox
  3.  
  4. // Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
  5. // Written by Andreas Zeller (zeller@ips.cs.tu-bs.de).
  6. // 
  7. // This file is part of the DDD Library.
  8. // 
  9. // The DDD Library is free software; you can redistribute it and/or
  10. // modify it under the terms of the GNU Library General Public
  11. // License as published by the Free Software Foundation; either
  12. // version 2 of the License, or (at your option) any later version.
  13. // 
  14. // The DDD Library is distributed in the hope that it will be useful,
  15. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17. // See the GNU Library General Public License for more details.
  18. // 
  19. // You should have received a copy of the GNU Library General Public
  20. // License along with the DDD Library -- see the file COPYING.LIB.
  21. // If not, write to the Free Software Foundation, Inc.,
  22. // 675 Mass Ave, Cambridge, MA 02139, USA.
  23. // 
  24. // DDD is the data display debugger.
  25. // For details, see the DDD World-Wide-Web page, 
  26. // `http://www.cs.tu-bs.de/softech/ddd/',
  27. // or send a mail to the DDD developers at `ddd@ips.cs.tu-bs.de'.
  28.  
  29. char DummyBox_rcsid[] = 
  30.     "$Id: DummyBox.C,v 1.4 1995/11/21 13:49:54 zeller Exp $";
  31.  
  32. #ifdef __GNUG__
  33. #pragma implementation
  34. #endif
  35.  
  36.  
  37. #include "assert.h"
  38. #include "DummyBox.h"
  39.  
  40. DEFINE_TYPE_INFO_1(DummyBox, ListBox)
  41.  
  42. // DummyBox
  43.  
  44. bool DummyBox::matchesAll = false;
  45.  
  46. bool DummyBox::matches(const Box& box, const Box *) const
  47. {
  48.     return matchesAll || ListBox::matches(box);
  49. }
  50.  
  51. // DummyBox ausgeben
  52. void DummyBox::dump(ostream& s) const
  53. {
  54.     s << "<_>";
  55. }
  56.